package study;

import java.util.Scanner;
public class divideNum {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个三位数数字");
        int i = sc.nextInt();
        int num1 = i % 10;
        int num2 = i / 10 % 10;
        int num3 = i / 100;
        System.out.println("百位是" + num3 + ",十位是" + num2 + ",个位是" + num1);
    }
}
